package com.douleka.curd.controller;

import com.douleka.curd.entity.SupplyCard;
import com.douleka.curd.service.ISupplyCardService;
import com.douleka.curd.utils.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * <p>
 * 卡密供货订单 前端控制器
 * </p>
 *
 * @author hg
 * @since 2024-03-19
 */
@CrossOrigin
@RestController
@RequestMapping("/supplyCard")
public class SupplyCardController {

    @Autowired
    private ISupplyCardService service;

    //根据条件查询获取订单
    @GetMapping("getSupplyCardList")
    public Result<Object> getSupplyCardList(BigInteger userId, BigInteger cardNo, String batchId, String area, BigDecimal face, Integer status,String startTime,String endTime,Integer productType,Integer curr,@RequestParam(defaultValue = "5") Integer pageSize){
        return service.getSupplyCardList(userId, cardNo, batchId, area, face, status, startTime, endTime,productType,curr,pageSize);
    }
}
